<#include "/view/common/command/para.html">
 <form name="editCompanyform">
 <div>
   <h5 class="wsclchead" id="editCompanyWin">编辑废气污染企业基本信息</h5>
      <table class="zs-form-tabs" width="100%">
        <tbody>
        <tr>
         <td  class="text" width="10%">污染源企业名称</td>
         <td colspan="1" class="input">
             <input type="text" class="zs-input" ng-model="companyEditData['NAME']">
         </td>
        <td class="text">申报单位法人代码</td>
        <td colspan="1" class="input">
           <input type="text" class="zs-input" ng-model="companyEditData['LEGAL_PERSON_CODE']">
        </td>
        <td class="text" rowspan="3">企业照片</td>
		<td class="input" rowspan="3">
			<ag-upload-image ng-model="companyEditData['IMG']" no-image="${wdpjsRootPath}wdp/images/noPic.png"></ag-upload-image>
		</td>
        </tr>
        <tr>
           <td class="text">单位地址</td>
           <td colspan="1" class="input">
             <input type="text" class="zs-input" ng-model="companyEditData['CONTACT_ADDRESS']">
           </td>
	      <td class="text">*企业编号</td>
	      <td colspan="1" class="input">
	              <input type="text" name="ID" class="zs-input" value=""  ng-model="companyEditData['COMPANY_CODE']"/>
		  </td>
        </tr>
        <tr>
   	      <td class="text">中心经度</td>
	      <td class="input" colspan="1">
	           <input type="text" class="zs-input" value="" ng-model="companyEditData['PWK_X']"/>
	       </td>
	      <td class="text">中心纬度</td>
	      <td class="input" colspan="1">
	           <input type="text" class="zs-input" value="" ng-model="companyEditData['PWK_Y']"/>
	       </td>
        </tr>
         <tr>
	      <td class="text">重点类型</td>
			<td class="input" colspan="1">
				<ag-Combobox ng-model="companyEditData['ATTENTION_LEVEL']" style="width:178px"
						text-Value="" table-name="" domain-name="" dynamic="false" data=<@domain
					addSpaceItem="true" tableName="data_defulatdomain"
					domainName="企业重点类型">${data}</@domain> /> </ag-Combobox> 
			</td>
	      <td class="text">专职环保人数</td>
	      <td class="input" colspan="1">
				<input  class="zs-input" value="" ng-model="companyEditData['STAFF_NUM']">
	       </td>
	     </tr>
	     <tr>
	      <td class="text">单位类别</td>
            <td colspan="1" class="input">
            <ag-Combobox ng-model="companyEditData['COMPANY_TYPE']" 
                            style="width:178px" 
                            text-Value="" table-name="" domain-name="" dynamic="false"  
                            data=<@domain addSpaceItem="true" tableName="data_defulatdomain" domainName="COMPANY_TYPE">${data}</@domain> />
          </td>
	        <td class="text">注册类型</td>
          <td colspan="1" class="input">
            <ag-Combobox ng-model="companyEditData['REGISTRATION_TYPE']" 
                            style="width:178px" 
                            text-Value="" table-name="" domain-name="" dynamic="false"  
                            data=<@domain addSpaceItem="true" tableName="data_defulatdomain" domainName="REGISTRATION_TYPE">${data}</@domain> />
          </td>
	     </tr>
            <tr>
	      <td class="text">行业类别</td>
	      <td class="input" colspan="1">
	           <input type="text" class="zs-input" value="" ng-model="companyEditData['INDUSTRY_TYPE']"/>
	       </td>
	        <td class="text">企业规模(人)</td>
	      <td class="input" colspan="1">
	           <input type="text" class="zs-input" value=""  ng-model="companyEditData['SCALE']">
	       </td>
	     </tr>
          	<tr>
	      <td class="text">隶属关系</td>
			<td class="input" colspan="1">
	           <ag-Combobox ng-model="companyEditData['DEPT_LEVEL']" 
	                       style="width:178px" 
	                       text-Value="" table-name="" domain-name="" dynamic="false"  
	                       data=<@domain addSpaceItem="true" tableName="data_defulatdomain" domainName="DEPT_LEVEL">${data}</@domain> />
       		</td>
	        <td class="text">地区代码</td>
	      <td class="input" colspan="1">
	           <input type="text" class="zs-input" value="" ng-model="companyEditData['AREACODE']">
	       </td>
	     </tr>
	     <tr>
   	     	<td class="text">备注</td>
	        <td class="input" colspan="1">
	           <input type="text" class="zs-input" value="" ng-model="companyEditData['NOTE']">
	       </td>
	        <td class="text">营业面积(平方米)</td>
	        <td class="input" colspan="1">
	           <input type="text" class="zs-input" value="" ng-model="companyEditData['AREA']">
	        </td>
	     </tr>
          <tr>
	        <td class="text">开户行</td>
	      <td class="input" colspan="1">
	           <input type="text" class="zs-input" value="" ng-model="companyEditData['BANK']">
	       </td>
	        <td class="text">银行账号</td>
	      <td class="input" colspan="1">
	           <input type="text" class="zs-input" value="" ng-model="companyEditData['BANK_ACCOUNT']">
	       </td>
	     </tr>
	     <tr>
         <td class="text">环保机构</td>
           <td colspan="1" class="input">
           <input type="text" class="zs-input" value="" ng-model="companyEditData['ENVIRONMENTAL_PROTECTION']">
           </td>           
		   <td class="text">法人代表</td>
		   <td colspan="1" class="input">
           <input type="text" class="zs-input" value="" ng-model="companyEditData['LEGAL_PERSON']">
           </td>						
   		 </tr>
	      <tr>
	       <td class="text">联系人</td>
	        <td class="input" colspan="1">
	           <input type="text" class="zs-input" value="" ng-model="companyEditData['CONTACT']">
	       </td>
	       <td class="text">联系电话</td>
	        <td class="input" colspan="1">
	           <input type="text" class="zs-input" value="" ng-model="companyEditData['MOBILE']">
	       </td>
	     </tr>
   		 
      	 <tr>
      	 	<td class="text">投产日期</td>
	       <td class="input" colspan="1">
	           <ag-Datebox  class="zs-input"  ng-model="companyEditData['RUNDATE']"></ag-Datebox >
	       </td>
	       <td class="text">传真</td>
	        <td class="input" colspan="1">
	           <input type="text" class="zs-input" value="" ng-model="companyEditData['FAX']">
	       </td>
	     </tr>
	     <tr>
	       <td class="text">电子邮件</td>
	        <td class="input" colspan="1">
	           <input type="text" class="zs-input" value="" ng-model="companyEditData['EMAIL']">
	       </td>
	       <td class="text">邮政编码</td>
	        <td class="input" colspan="1">
	           <input type="text" class="zs-input" value="" ng-model="companyEditData['ZIP_CODE']">
	       </td>
	     </tr>
   		<tr>
		<td class="text">污染源类型</td>
	    <td class="center" rowspan="2" colspan="4">
   			<div style="display: inline-block;">
			<label ng-repeat="row in companyPollType" style="margin-left: 6px;  display: block;float:left" class="parmLabel">
			<input ng-checked="row.CHECKED" ng-click="pollTypeCheck($event,row)" class="zs-btn radio_btn" type="checkbox" />{{row.S_DOMAINCAPTION}}</label>
			</div>
		</td>
		</tr>
        </tbody>
     </table>   
</div>
<div style="text-align: center;">
  	<input  type="button" value="保存" class="zs-btn" ng-click="updateCompany(companyEditData,companyPollType);">
    <input type="button" value="取消" class="zs-btn" ng-click="closeEditCompanyWin();">
</div>
</form>